/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufpe.cin.dmo4.middleware.server;

/**
 *
 * @author Danilo
 */
public abstract class ServerRequestHandler {
    private ServerHandlerListener listener;

    public ServerRequestHandler(ServerHandlerListener listener) {
        this.listener = listener;
    }

    public ServerRequestHandler() {
    }

    public void setListener(ServerHandlerListener listener) {
        this.listener = listener;
    }        

    public ServerHandlerListener getListener() {
        return listener;
    }
    
    public abstract void startListen();
    
    public abstract void stopListen();
}
